FROM elasticsearch:7.14.1

RUN yum clean all \
&& yum makecache \
&& yum install wget -y
RUN cd /usr/share/elasticsearch/plugins \
&& wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.14.1/elasticsearch-analysis-ik-7.14.1.zip \
&&  mkdir ik \
&&  unzip elasticsearch-analysis-ik-7.14.1.zip -d ./ik \
&& rm -rf elasticsearch-analysis-ik-7.14.1.zip
